package com.huaxin.hxmodulesystem;


/**
 * @Description: 删除操作上下文
 * @author: fuai
 * @date: 2025-08-11
 */
public class DeleteOperationContext {
    private static final ThreadLocal<Boolean> IS_DELETE = new ThreadLocal<>();

    public static void markAsDelete() {
        IS_DELETE.set(true);
    }

    public static boolean isDeleteOperation() {
        return Boolean.TRUE.equals(IS_DELETE.get());
    }

    public static void clear() {
        IS_DELETE.remove();
    }
}
